var scriptE = document.createElement('script');
scriptE.setAttribute('type', 'text/javascript');
var src = 'static/js/index.js';
// console.log(window.location.search.indexOf('wechat'));
if (window.location.search.indexOf('wechat') !== -1) {
    src = 'static/js/wechat.js';
}
scriptE.setAttribute('src', src);
document.body.appendChild(scriptE);